licenses(["notice"])

java_test(
    name = "ToBeSignedJwtTest",
    size = "small",
    srcs = ["ToBeSignedJwtTest.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/jwt:jwt_names",
        "//src/main/java/com/google/crypto/tink/jwt:to_be_signed_jwt",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@maven//:org_json_json",
    ],
)

java_test(
    name = "JwtValidatorTest",
    size = "small",
    srcs = ["JwtValidatorTest.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/jwt",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_expired_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_invalid_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_names",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_not_before_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_validator",
        "//src/main/java/com/google/crypto/tink/jwt:to_be_signed_jwt",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@maven//:org_json_json",
    ],
)

java_test(
    name = "JwtTest",
    size = "small",
    srcs = ["JwtTest.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/jwt",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_expired_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_names",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_not_before_exception",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
        "@maven//:org_json_json",
    ],
)

java_test(
    name = "JwtHmacTest",
    size = "small",
    srcs = ["JwtHmacTest.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/jwt",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_expired_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_hmac",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_invalid_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_not_before_exception",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_validator",
        "//src/main/java/com/google/crypto/tink/jwt:to_be_signed_jwt",
        "//src/main/java/com/google/crypto/tink/subtle:base64",
        "//src/main/java/com/google/crypto/tink/subtle:random",
        "//src/main/java/com/google/crypto/tink/testing:test_util",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
    ],
)

java_test(
    name = "JwtHmacKeyManagerTest",
    size = "small",
    srcs = ["JwtHmacKeyManagerTest.java"],
    deps = [
        "//proto:common_java_proto",
        "//proto:jwt_hmac_java_proto",
        "//src/main/java/com/google/crypto/tink:key_template",
        "//src/main/java/com/google/crypto/tink:key_type_manager",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_hmac",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_hmac_key_manager",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_mac",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_validator",
        "//src/main/java/com/google/crypto/tink/jwt:to_be_signed_jwt",
        "//src/main/java/com/google/crypto/tink/subtle:random",
        "//src/main/java/com/google/crypto/tink/testing:key_type_manager_test_util",
        "//src/main/java/com/google/crypto/tink/testing:test_util",
        "@com_google_protobuf//:protobuf_javalite",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
    ],
)

java_test(
    name = "JwtMacWrapperTest",
    size = "small",
    srcs = ["JwtMacWrapperTest.java"],
    deps = [
        "//proto:tink_java_proto",
        "//src/main/java/com/google/crypto/tink:primitive_set",
        "//src/main/java/com/google/crypto/tink/jwt",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_hmac",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_mac",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_mac_wrapper",
        "//src/main/java/com/google/crypto/tink/jwt:jwt_validator",
        "//src/main/java/com/google/crypto/tink/jwt:to_be_signed_jwt",
        "//src/main/java/com/google/crypto/tink/subtle:random",
        "@maven//:com_google_truth_truth",
        "@maven//:junit_junit",
    ],
)
